package strongholdCraft.common.core;

import strongholdCraft.common.mod_StrongholdCraft;
import strongholdCraft.common.Items.Items;
import net.minecraftforge.event.ForgeSubscribe;
import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent;

public class StrongholdCraftEventHooks {
	@ForgeSubscribe
	public void onEntityUpdate(LivingUpdateEvent event) {
		if(event.entityLiving.isPotionActive(mod_StrongholdCraft.potionMilk)) {
			if(event.entityLiving.worldObj.rand.nextInt(20) == 0) {
				event.entityLiving.clearActivePotions();
			}
		}
	}

}
